wayland: recursively search for the settings schema.
authorLucas Baudin <lucas.baudin@ens.fr>
Sun, 13 Dec 2015 18:24:50 +0000 (19:24 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 14 Dec 2015 13:20:04 +0000 (08:20 -0500)
On some systems, the gtk settings are not used properly for wayland.
Indeed, g_settings_schema_source_get_default is used, and as the docs says it,
"all lookups performed against the default source should probably be done
recursively.".

https://bugzilla.gnome.org/show_bug.cgi?id=759409

gdk/wayland/gdkscreen-wayland.c

index e60e9fcd8f3e2d15b5bfa2a87246013f57d171e3..ec0d4034250ff08cb8c1d3195ce50aa2e7bef063 100644 (file)
@@ -631,7 +631,7 @@ init_settings (GdkScreen *screen)
       if (g_hash_table_lookup (screen_wayland->settings, (gpointer)translations[i].schema) != NULL)
         continue;
 
-      schema = g_settings_schema_source_lookup (source, translations[i].schema, FALSE);
+      schema = g_settings_schema_source_lookup (source, translations[i].schema, TRUE);
       if (schema != NULL)
         {
           settings = g_settings_new_full (schema, NULL, NULL);